home *** CD-ROM | disk | FTP | other *** search
/ Super Shareware Collection / Super Shareware Collection.iso / info / ms_txt.zip / PD0321.TXT next >
Text File  |  1994-02-18  |  8KB  |  165 lines

  1. ======================================================================
  2.   Microsoft(R) Product Support Services Application Note (Text File)
  3.             PD0321: REMOVING NON-DOS PARTITIONS WITH DEBUG
  4. ======================================================================
  5.                                                   Revision Date: 11/93
  6.                                                       No Disk Included
  7.  
  8. The following information applies to Microsoft MS-DOS(R), versions
  9. 3.2, 3.21, 3.3, 4.0, 4.01, 5.0, 6.0, and 6.2.
  10.  
  11. -----------------------------------------------------------------------
  12. | INFORMATION PROVIDED IN THIS DOCUMENT AND ANY SOFTWARE THAT MAY     |
  13. | ACCOMPANY THIS DOCUMENT (collectively referred to as an Application |
  14. | Note) IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER      |
  15. | EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED      |
  16. | WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR       |
  17. | PURPOSE. The user assumes the entire risk as to the accuracy and    |
  18. | the use of this Application Note. This Application Note may be      |
  19. | copied and distributed subject to the following conditions:  1) All |
  20. | text must be copied without modification and all pages must be      |
  21. | included;  2) If software is included, all files on the disk(s)     |
  22. | must be copied without modification (the MS-DOS utility diskcopy is |
  23. | appropriate for this purpose);  3) All components of this           |
  24. | Application Note must be distributed together;  and  4) This        |
  25. | Application Note may not be distributed for profit.                 |
  26. |                                                                     |
  27. | Copyright (C) 1990-1993 Microsoft Corporation.  All Rights Reserved |
  28. | Microsoft and MS-DOS are registered trademarks and Windows is a     |
  29. | trademark of Microsoft Corporation.                                 |
  30. |---------------------------------------------------------------------|
  31.  
  32. Introduction
  33. ------------
  34.  
  35. There are currently several different versions of MS-DOS in the
  36. personal-computer environment, both in the OEM-licensed versions and
  37. in the Microsoft packaged-product versions. The hard-disk-management
  38. capabilities of MS-DOS vary from one version to another. For example,
  39. MS-DOS versions 3.2 and 3.21 can address a single hard-disk partition
  40. of up to 32 megabytes (MB); MS-DOS version 3.3 can address multiple
  41. hard-disk partitions, with a primary DOS partition of up to 32 MB and
  42. an extended DOS partition containing logical drives of up to 32 MB
  43. each; and MS-DOS versions 4.0, 4.01, 5.0, 6.0, and 6.2 can address
  44. multiple hard-disk partitions with sizes up to 2 gigabytes (GB).
  45.  
  46. For those using versions of MS-DOS that have lesser levels of hard-
  47. disk support, such as MS-DOS versions 3.2 and 3.21, there are a number
  48. of third-party hard-disk-management software packages that allow MS-
  49. DOS to access multiple partitions and/or partitions in excess of 32
  50. MB. However, these third-party packages may use non-DOS constructs to
  51. assist in managing the hard disk, possibly including non-DOS
  52. partitions. These non-DOS constructs can cause problems when you
  53. upgrade to later versions of MS-DOS because versions of MS-DOS earlier
  54. than 5.0 assume that non-DOS constructs are owned by another operating
  55. system and, therefore, do not use, delete, or change non-DOS
  56. partitions or other non-DOS constructs in any way.
  57.  
  58.    WARNING: Some computers require the use of third-party hard-disk-
  59.    partitioning software because the system ROM BIOS does not fully
  60.    support the drive parameters of the hard disk that is being used or
  61.    because the hard disk has more than 1024 data cylinders. If you are
  62.    unsure if your system supports your hard disk, consult your
  63.    hardware manufacturer or the manufacturer of your partitioning
  64.    software before proceeding.
  65.  
  66. Using Debug to Remove a Non-DOS Partition
  67. -----------------------------------------
  68.  
  69. The Debug script on the following page, used with the MS-DOS Debug
  70. program, deletes non-DOS partitions when you upgrade to a new version
  71. of MS-DOS, enabling the entire hard disk to be used by MS-DOS. It does
  72. so, however, by clearing out the entire partition table on the hard
  73. disk, which results in the deletion of ALL partitions on the hard
  74. disk. You need to use this method if your current version of MS-DOS
  75. cannot delete non-DOS partitions.
  76.  
  77.   WARNING: Because all data on your hard disk will be destroyed by
  78.   this procedure, you must back up your hard disk before using this
  79.   Debug script.
  80.  
  81. There are two ways to use the following Debug script:
  82.  
  83.  - Run Debug and type the Debug commands from the center column of
  84.    Table 1 at the corresponding Debug prompt. (The left column of the
  85.    table shows the prompts that are displayed by Debug. You do not
  86.    need to type the comments in the right column.)
  87.    
  88.    -or-
  89.  
  90.  - Type the command in the center column of Table 1 into a file using
  91.    a text editor such as MS-DOS Editor and then use input redirection
  92.    to feed the resulting file into Debug. For example, if you typed
  93.    the commands into a file called HDPART.SCR, you would clear your
  94.    partition table by typing the following at the MS-DOS command
  95.    prompt and then pressing ENTER:
  96.       
  97.       debug < hdpart.scr
  98.    
  99.   
  100.       Table 1:  Debug Script to Erase Hard-Disk Partition Table
  101.    ----------------------------------------------------------------
  102.       Debug        Enter Debug       Comments
  103.       Prompts      Commands
  104.    ----------------------------------------------------------------
  105.       -            A 100             Assemble from CS:0100.
  106.  
  107.       nnnn:0100    INT 13            Call interrupt 13.
  108.       
  109.       nnnn:0102    press the         (nnnn in the segment address).
  110.                    ENTER key
  111.  
  112.       -            RAX               Replace AX register.
  113.  
  114.       AX 0000     
  115.                  
  116.       :            0301              Write on sector.
  117.  
  118.       -            RBX               Replace BX register.
  119.  
  120.       BX 0000       
  121.                
  122.       :            0200              Start from ES:200.
  123.  
  124.       -            F 200 L 200 0     We want to write zeros.
  125.  
  126.       -            RCX               Replace CX register.
  127.  
  128.       CX 0000         
  129.             
  130.       :            0001              Cylinder, 0, sector 1.
  131.  
  132.       -            RDX               Replace DX register.
  133.  
  134.       DX 0000         
  135.              
  136.       :            0080              First physical hard disk, head
  137.                                      0. (Substitute 0081 for this
  138.                                      entry if you are clearing the
  139.                                      table on the second physical
  140.                                      hard disk, 0082 if you are
  141.                                      clearing the third physical
  142.                                      hard disk, and so forth).
  143.  
  144.       -            P                 Proceed (Debug will display
  145.                                      several lines of information).
  146.  
  147.       -            Q                 Quit Debug.
  148.    ----------------------------------------------------------------
  149.  
  150. This script completely clears the partition table on your hard disk,
  151. preparing the hard disk for repartitioning using the MS-DOS Fdisk
  152. program. (When you run Fdisk for the first time after using this
  153. procedure and before reinstalling MS-DOS, the message "No partitions
  154. defined" should be displayed if the partition deletion procedure was
  155. successful.) For more information about using Fdisk, see the Microsoft
  156. MS-DOS" User's Guide and Reference" for version 3.2, 3.21, 3.3, 4.0,
  157. 4.01, or 5.0, or the Microsoft MS-DOS" User's Guide" for version 6.0
  158. or 6.2.
  159.  
  160. Non-DOS partitions on your hard disk are also erased if you perform a
  161. low-level format. Consult your hardware manufacturer for specific
  162. instructions on performing a low-level format on your hard disk.
  163.  
  164.    WARNING: Performing a low-level format will completely erase all
  165.    data on your hard disk, including all defined partitions.